Optimal. Leaf size=29 \[ -\text{Si}(2 x)-\frac{\sin (2 x)}{4 x^2}-\frac{\cos (2 x)}{2 x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0589954, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {4406, 12, 3297, 3299} \[ -\text{Si}(2 x)-\frac{\sin (2 x)}{4 x^2}-\frac{\cos (2 x)}{2 x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4406
Rule 12
Rule 3297
Rule 3299
Rubi steps
\begin{align*} \int \frac{\cos (x) \sin (x)}{x^3} \, dx &=\int \frac{\sin (2 x)}{2 x^3} \, dx\\ &=\frac{1}{2} \int \frac{\sin (2 x)}{x^3} \, dx\\ &=-\frac{\sin (2 x)}{4 x^2}+\frac{1}{2} \int \frac{\cos (2 x)}{x^2} \, dx\\ &=-\frac{\cos (2 x)}{2 x}-\frac{\sin (2 x)}{4 x^2}-\int \frac{\sin (2 x)}{x} \, dx\\ &=-\frac{\cos (2 x)}{2 x}-\frac{\sin (2 x)}{4 x^2}-\text{Si}(2 x)\\ \end{align*}
Mathematica [A] time = 0.0075177, size = 29, normalized size = 1. \[ -\text{Si}(2 x)-\frac{\sin (2 x)}{4 x^2}-\frac{\cos (2 x)}{2 x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.029, size = 26, normalized size = 0.9 \begin{align*} -{\frac{\cos \left ( 2\,x \right ) }{2\,x}}-{\it Si} \left ( 2\,x \right ) -{\frac{\sin \left ( 2\,x \right ) }{4\,{x}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.26484, size = 20, normalized size = 0.69 \begin{align*} i \, \Gamma \left (-2, 2 i \, x\right ) - i \, \Gamma \left (-2, -2 i \, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.469186, size = 96, normalized size = 3.31 \begin{align*} -\frac{2 \, x \cos \left (x\right )^{2} + 2 \, x^{2} \operatorname{Si}\left (2 \, x\right ) + \cos \left (x\right ) \sin \left (x\right ) - x}{2 \, x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.59581, size = 24, normalized size = 0.83 \begin{align*} - \operatorname{Si}{\left (2 x \right )} - \frac{\cos{\left (2 x \right )}}{2 x} - \frac{\sin{\left (2 x \right )}}{4 x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13422, size = 35, normalized size = 1.21 \begin{align*} -\frac{4 \, x^{2} \operatorname{Si}\left (2 \, x\right ) + 2 \, x \cos \left (2 \, x\right ) + \sin \left (2 \, x\right )}{4 \, x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]